﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace DBSchemaViewer.FrontEnd.DiagramUserControls.Interfaces
{
    /// <summary>
    /// DB Controls will share this interface, this will make easier to the main application
    /// the handling of selected objects.
    /// </summary>
    public interface ISelectable
    {
        /// <summary>
        /// Readonly property, is this control currently selected?
        /// </summary>
        bool IsSelected { get; }

        /// <summary>
        /// Select the control, and peform whatever operation needed to update the UI in order to
        /// mark it as selected
        /// (e.g. place a red border).
        /// </summary>
        void Select();

        /// <summary>
        /// Unselect the control, and perform whatever operation needed to Update the UI in order to
        /// mark it as not selected (e.g. restore the black border on the control).
        /// </summary>
        void unSelect();
    }
}
